package com.hcinfos.gsoo.ui;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

import com.hcinfos.gsoo.R;
import com.hcinfos.gsoo.adapter.MenuAdapter;
import com.hcinfos.gsoo.adapter.MenuDetailAdapter;
import com.hcinfos.gsoo.adapter.MenuScrollViewAdapter;
import com.hcinfos.gsoo.interfaze.DataCallback;

/**
 * 菜单 菜页面
 * 
 * @author xi
 * 
 */
public class DingZuoOrderConfirActivity extends Activity implements
		OnClickListener {

	private Intent intent;
	private LinearLayout menu_ll;
	private List<String> list;
	private ImageView back_iv;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_dingzuoorderconfir);

		menu_ll = (LinearLayout) findViewById(R.id.menu_ll);
		back_iv = (ImageView) findViewById(R.id.back_iv);
		back_iv.setOnClickListener(this);
		updateViews();
	}

	private void updateViews() {
		menu_ll.removeAllViews();
		list = new ArrayList<String>();
		for (int i = 0; i < 7; i++) {
			list.add("");
			View view = LayoutInflater.from(this).inflate(
					R.layout.order_menu_item, null);
			menu_ll.addView(view);
		}
	}

	@Override
	public void onClick(View v) {

		switch (v.getId()) {

		case R.id.order_tv:

			break;
		case R.id.back_iv:
			finish();
			break;
		}
	}

}
